package com.desire.test;

import java.util.concurrent.Callable;

/**
 * @author desire
 */
public class _36_线程 {


    public class callable implements Callable<Integer> {
        @Override
        public Integer call() throws Exception {
            return 300;
        }
    }

    public class thread extends Thread {

        @Override
        public void run() {
            System.out.println("开启线程...");
        }
    }


    public class runnable implements Runnable {
        @Override
        public void run() {
            System.out.println("开启线程....");
        }
    }
}
